<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<html>
<head>
    <title>Title</title>
    <script type="text/javascript">
     if(self!=top){
    	 top.location=self.location;
     }
    </script>
</head>
<body>
  <h1>管理员登录</h1>
  <p style="color:red">
  <%-- <%
  request.setCharacterEncoding("utf-8");
  String msg=request.getParameter("msg");
  %> --%>
  <!--  --> 
  <%-- <%=msg==null?"":msg%> --%>
  ${msg }
  <c:if test="${param.msg!=null }">${param.msg }</c:if>
  
  </p>
<%-- <%
 if(session.getAttribute("USER_LOGIN")!=null){
	 response.sendRedirect("welcome.jsp");
	 return;
 }
%>  --%> 
<form method="post" action="LoginServlet">
    <input type="text" name="username" placeholder="用户名" required/>
    <input type="password" name="pass" placeholder="密码" required pattern="\w{3,20}"/>
   <input type="checkbox" value="on" name="keeppassincookie"/>保留用户名密码
    <input type="submit" value="登录"/>
    <img src="img/t019d224d4902b8a001.jpg">
</form>
</body>
</html>